package com.my.mall.client.home.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.my.mall.client.home.service.HomeClientService;
import com.my.mall.client.home.vo.HomeClientVo;
import com.my.mall.common.Base;

@Controller
@RequestMapping("client/home")
public class HomeClientController extends Base {

	@Autowired
	HomeClientService homeClientService;

	/**
	 * 查询商品
	 * @param pageNumber
	 * @param length
	 * @return
	 */
	@RequestMapping("selectHomeInfoList")
	@ResponseBody
	public Map<String, List<HomeClientVo>> selectHomeInfoList() {
		return homeClientService.selectHomeInfoList();
	}

}